﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Model.MetadataTypes;
namespace Model.Entities
{
    /// <summary>
    /// 实体类 辅助设备表, 此类请勿动，以方便表字段更改时重新生成覆盖
    /// </summary>
    [Serializable]
    [MetadataType(typeof(HRDS_ASSIST_EQUIPMENT_Metadata))]
    public partial class HRDS_ASSIST_EQUIPMENT
    {
        /// <summary>
        /// 创建<see cref="HRDS_ASSIST_EQUIPMENT"/>的实例
        /// </summary>
        public HRDS_ASSIST_EQUIPMENT()
        {
        }
        /// <summary>
        /// 设备ID 主键
        /// </summary>
        public virtual string EQGUID { get; set; }

        		
        /// <summary>
        /// 设备编号
        /// </summary>
        public virtual string EQUNO { get; set; }

    		
        /// <summary>
        /// 设备型号
        /// </summary>
        public virtual string EQUMODE { get; set; }

    		
        /// <summary>
        /// 设备类型
        /// </summary>
        public virtual string EQUTYPE { get; set; }

    		
        /// <summary>
        /// 生产厂家
        /// </summary>
        public virtual string MADEFACTORY { get; set; }

    		
        /// <summary>
        /// IP
        /// </summary>
        public virtual string EQUIP { get; set; }

    		
        /// <summary>
        /// 端口
        /// </summary>
        public virtual string EQUPORT { get; set; }

    		
        /// <summary>
        /// 状态(01:正常。02：停用；03故障)
        /// </summary>
        public virtual string EQUSTATUS { get; set; }

    		
        /// <summary>
        /// 设备参数
        /// </summary>
        public virtual string EQUPARMENTS { get; set; }

    		
        /// <summary>
        /// 安装日期
        /// </summary>
        public virtual DateTime? INSTRLDATE { get; set; }

    		
        /// <summary>
        /// 序列号
        /// </summary>
        public virtual string EQUSN { get; set; }

    		
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string EQUCOMMENT { get; set; }

    		
        /// <summary>
        /// 设备名称
        /// </summary>
        public virtual string EQNAME { get; set; }

    		
        /// <summary>
        /// 站点ID
        /// </summary>
        public virtual string STATIONID { get; set; }

    		
        /// <summary>
        /// 是否被选用(01:空闲。02：被选用)
        /// </summary>
        public virtual string ISFLAG { get; set; }

    		
        /// <summary>
        /// 设备的MAC地址
        /// </summary>
        public virtual string MACADDRESS { get; set; }

    		
        public override bool Equals(object obj)
        {
            HRDS_ASSIST_EQUIPMENT model = obj as HRDS_ASSIST_EQUIPMENT;
            return model != null && (ReferenceEquals(EQGUID,null) ? ReferenceEquals(model.EQGUID, null) : EQGUID.Equals(model.EQGUID));
        }
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
            hash = (hash * 397) ^ (ReferenceEquals(EQGUID, null) ? 0 : EQGUID.GetHashCode());
            return hash;
        }
    }
}
